package com.shareach.web.basic;

import org.codehaus.jackson.map.annotate.JsonSerialize;

/**
 * 响应共同结构
 * @author Administrator
 *
 */
@JsonSerialize(include=(JsonSerialize.Inclusion.NON_NULL))
public  class  Answer<T>{
	private Integer cmd;
	private Integer  code;
	private String  msg;
	private T result;
	public Answer(){
		code = 0;
	}
	public T getResult() {
		return result;
	}
	public void setResult(T result) {
		this.result = result;
	}
	public Integer getCmd() {
		return cmd;
	}
	public void setCmd(Integer cmd) {
		this.cmd = cmd;
	}
	public Integer getCode() {
		return code;
	}
	public void setCode(Integer code) {
		this.code = code;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
}
